package com.alibaba.citrus.ots.b2b.trade.order.api;

import com.alibaba.citrus.ots.b2b.trade.order.dto.request.OrderLinePageQueryRequest;
import com.alibaba.citrus.ots.b2b.trade.order.dto.request.QuerySaleOrderLine;
import com.alibaba.citrus.ots.b2b.trade.order.dto.request.QuerySaleOrderLineRequest;
import com.alibaba.citrus.ots.b2b.trade.order.dto.response.OrderLinePageQueryResponse;
import com.alibaba.lattice2.epoch.meshflow.model.annotation.MeshFlowService;
import com.alibaba.lattice2.epoch.sdk.model.Result;

import javax.management.Query;
import java.util.List;


@MeshFlowService(apps = {"bc_ots"}, name = "销售子订单查询API")
public interface OrderLineQueryService {

    /**
     * 分页查询销售子订单
     * @param request OrderPageQueryRequest
     * @return PageResult<List<OrderSDO>>
     */
    Result<List<OrderLinePageQueryResponse>> pageQuery(OrderLinePageQueryRequest request);

    /**
     * 根据货品信息查询对应其他信息
     * @param request
     * @return Result<List<QuerySaleOrderLine>>
     */
    Result<List<QuerySaleOrderLine>> queryScItemInfo(QuerySaleOrderLineRequest request);
}
